import 'package:aihu_getx_app/app/modules/commons/model/client_base_config_model.dart';
import 'package:aihu_getx_app/app/routes/app_pages.dart';
import 'package:flutter/material.dart';

enum ClientType {
  b(type: "b", description: "护工端"),
  c(type: "c", description: "客户端"),
  d(type: "d", description: "运营端"),
  e(type: "e", description: "老人护理");

  final String type;
  final String description;

  const ClientType({required this.type, required this.description});
}

enum DictTypeEnum {
  commonStatus(type: 'common_status', description: "系统状态"),
  systemUserSex(type: 'system_user_sex', description: "性别"),
  userType(type: 'user_type', description: "用户类型"),
  chatUserOnlineStatus(type: 'chat_user_online_status', description: "会话用户状态"),
  chatMsgSendStatus(type: 'chat_msg_send_status', description: "消息发送状态"),
  chatMsgReadStatus(type: 'chat_msg_read_status', description: "消息读取状态"),
  chatMsgType(type: 'chat_msg_type', description: "消息类型"),
  ;

  final String type;
  final String description;

  const DictTypeEnum({required this.type, required this.description});
}

abstract class Constants {
  static const String appName = '云享嘉';
  static const String appVersion = 'v1.0.0';
  static const String appDescription = '云上联通，享受尚嘉守护！';
  static const String logo = "assets/images/logo.png";
  static const String icon = "assets/icon/icon.png";
  static const String splashBgImage = "assets/images/splash/splash_bg_02.png";
  static const String splashLogoImage =
      "assets/images/splash/splash_logo_2.png";
  static const String appBarLogoImage =
      "https://fs.aihujiankang.com/app-bar-logo-2.png";
  static const String defaultQrBg = "assets/images/qr/default_qr_bg.jpg";
  static const String jumpArgument = "jump";
  static const String pageIndexArgument = "jumpPageIndex";

  static const mqttBaseUrl = "mq.aihujiankang.com";
  static const mqttPort = 1883;

  static const _serviceApiBaseUrl = "https://server.aihujiankang.cn";
  // static const _serviceApiBaseUrl = "http://192.168.1.23:48080";

  static List<ClientBaseConfigModel> clientBaseConfigData = [
    ClientBaseConfigModel(
      ClientType.e,
      title: "老人护理",
      image: "assets/images/splash/app-4.png",
      description: "云享嘉老人护理端",
      indexPage: Routes.eHome,
      serverApiUrl: "$_serviceApiBaseUrl/app-api",
      tenantId: 150,
      appId: 'wx78ad5c0a2eefcb96',
      refreshTokenUri: '/member/auth/refresh-token',
      boundaryKey: GlobalKey(),
      userType: 1,
    ),
    ClientBaseConfigModel(
      ClientType.c,
      title: "客户端",
      image: "assets/images/splash/app-3.png",
      description: "云享嘉客户端",
      indexPage: Routes.cHome,
      serverApiUrl: "$_serviceApiBaseUrl/app-api",
      tenantId: 150,
      appId: 'wxcb0cd9b4c0e30d48',
      refreshTokenUri: '/member/auth/refresh-token',
      boundaryKey: GlobalKey(),
      userType: 1,
    ),
    ClientBaseConfigModel(
      ClientType.b,
      title: "护工端",
      image: "assets/images/splash/app-2.png",
      description: "云享嘉护工端",
      indexPage: Routes.bHome,
      serverApiUrl: "$_serviceApiBaseUrl/app-api",
      tenantId: 150,
      appId: 'wxd61968348c06b0e8',
      refreshTokenUri: '/member/auth/refresh-token',
      boundaryKey: GlobalKey(),
      userType: 1,
    ),
    ClientBaseConfigModel(
      ClientType.d,
      title: "运营端",
      image: "assets/images/splash/app-1.png",
      description: "云享嘉运营端",
      indexPage: Routes.dHome,
      serverApiUrl: "$_serviceApiBaseUrl/admin-api",
      tenantId: 150,
      appId: 'wx3528565d108e033b',
      refreshTokenUri: '/system/auth/refresh-token',
      boundaryKey: GlobalKey(),
      userType: 2,
    ),
  ];
}
